package com.spa.infrastructure.service.douyin.result;

import lombok.Data;

import java.util.List;

@Data
public class PrepareResult {

    private Data data;

    private Extra extra;

    @lombok.Data
    public static class Data {

        private List<Certificate> certificates;

        private String verify_token;

        private int error_code;

        private String description;

        private String order_id;

    }

    @lombok.Data
    private static class Extra {

        private int error_code;

        private String description;

        private String logid;

    }

    @lombok.Data
    public static class Certificate {

        private String encrypted_code;

        private long expire_time;

        private long start_time;

        private long certificate_id;

        private Sku sku;

        private Amount amount;

    }

    @lombok.Data
    public static class Sku {

        private String title;

        private String account_id;

        private String sku_id;

        private String third_sku_id;

        private int market_price;

        private int sold_start_time;

        private int groupon_type;

    }

    @lombok.Data
    public static class Amount {

        private int original_amount;

        private int pay_amount;

        private int list_market_amount;

        private int payment_discount_amount;

        private int coupon_pay_amount;

    }

}
